//
//  goodsViewController.h
//  iOS-LoginUIController
//
//  Created by Apple-19 on 15/10/12.
//  Copyright (c) 2015年 Apple-19. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "goodsTableViewCell.h"
#import "InformationsOfGoodViewController.h"
#import "MyViewController.h"
#import "ICSDrawerController.h"
#import "ICSDrawerController.h"
#import "MenuViewController.h"
#import "PassworldViewController.h"
@interface goodsViewController : UIViewController<UITableViewDataSource,UITableViewDelegate,UISearchBarDelegate,UISearchResultsUpdating,UIAlertViewDelegate,UITextFieldDelegate,ICSDrawerControllerChild, ICSDrawerControllerPresenting>
{
    NSUserDefaults  *user1;
    //NSMutableDictionary *selecteIndexs;
    //IBOutlet UIView *searchView;
    int i;
    InformationsOfGoodViewController *informations;
    
    IBOutlet UIView *myView;
    IBOutlet UIView *twoView;
    
    IBOutlet UIButton *locationButton;
    IBOutlet UIButton *informationButton;
    IBOutlet UIButton *shareButton;
    IBOutlet UIButton *loginButton;
    
    
    IBOutlet UIView *addSomeView;
    IBOutlet UIView *distanceView;
    IBOutlet UIButton *distanceButton;
    IBOutlet UIView *cataView;
    IBOutlet UIView *nearbyView;
    
    
    
}
//- (IBAction)goToBack;

@property (weak, nonatomic) IBOutlet UITextField *searchBar;
@property (weak, nonatomic) IBOutlet UIView *topView;
@property (weak, nonatomic) IBOutlet UITableView *goodsShowView;
@property (weak, nonatomic) IBOutlet UITableView *oneTableView;
@property (weak, nonatomic) IBOutlet UITableView *twoTableView;
@property (weak, nonatomic) IBOutlet UITableView *threeTableView;
@property (weak, nonatomic) IBOutlet UITableView *fourTableView;


//@property (nonatomic,strong)UISearchController *searchBox;
@property(nonatomic, weak) ICSDrawerController *drawer;



@property(nonatomic,strong)NSMutableArray *filterGoods;
@property(nonatomic,strong)NSMutableArray *sourceGoods;
@property(nonatomic,strong)NSMutableArray *cataArr;
@property(nonatomic,strong)NSMutableArray *threeArr;
@property(nonatomic,strong)NSMutableArray *fourArr;
@property(nonatomic,strong)NSMutableArray *listArr1;
@property(nonatomic,strong)NSMutableArray *listArr2;
@property(nonatomic,strong)NSMutableArray *listArr3;
@property(nonatomic,strong)NSMutableArray *listArr;
@property(nonatomic,strong)NSMutableArray *cataArr1;
@property(nonatomic,strong)NSMutableArray *cataArr2;
@property(nonatomic,strong)NSMutableArray *cataArr4;
@property(nonatomic,strong)NSMutableDictionary *listDic;
@property(nonatomic,strong)NSMutableDictionary *cataDic;

@property(nonatomic,strong)IBOutlet goodsTableViewCell *myGoodsCell;
@property(nonatomic,strong)UINib *cellNib;
-(BOOL)cellRowIsSelected:(NSInteger)indexPathRow;



-(IBAction)titleButton:(id)sender;
-(void)dismissMoreView:(id)sender;

-(IBAction)exitButton:(id)sender;
-(IBAction)toMy:(id)sender;
-(IBAction)toURL:(id)sender;
-(IBAction)toLocation:(id)sender;


- (IBAction)openDrawer:(id)sender;

-(IBAction)toView:(id)sender;
-(IBAction)showDistance:(UIButton *)sender;
@end
